package com.tegistuff.webos.run.debugger;

import com.intellij.javascript.debugger.impl.JSDebuggerEvaluator;
import com.intellij.xdebugger.XSourcePosition;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * WebOSDebuggerEvaluator.java
 *
 * Copyright (C) 2012 Timo Tegtmeier.
 * All rights reserved.
 */
public class WebOSDebuggerEvaluator extends JSDebuggerEvaluator {

    private WebOSDebuggerProxy myDebuggerProxy;

    public WebOSDebuggerEvaluator(WebOSDebuggerProxy debuggerProxy) {
        myDebuggerProxy = debuggerProxy;
    }

    @Override
    public void evaluate(@NotNull String expression, XEvaluationCallback callback, @Nullable XSourcePosition expressionPosition) {
        myDebuggerProxy.evaluate(expression, callback);
    }
}
